/**
 * Created by Administrator on 2016/9/22 0022.
 */
const mongoose = require('mongoose');
var settings = require('../settings');
mongoose.Promise = global.Promise = require('bluebird');
mongoose.connect('mongodb://'+settings.host+'/'+settings.db);

module.exports = mongoose;